<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>合同变更列表</title>
		<%@ include file="/include/resources.jsp" %>
	</head>
	<body>
		<script type="text/javascript" src="msi/contract/contract.js"></script>
		<script type="text/javascript">
			$(function(){
				var contractId = $("#_contractId").val();
				$('#contractHisList').datagrid({
					width : 660,
					pagination:true,
					url:"searchContractHisList.do",
					queryParams:{"contractChange.contractId":contractId},
					onDblClickRow:function(rowIndex, rowData) {
						openChannelContractHisForm();
					}
				});		  
			});
		</script>
		<input type="hidden" id="_contractId" value="<s:property value='contract.contractId'/>"/>
		<div style="padding:5px;background:#fafafa;border-bottom:1px solid #eee;">
			<table cellpadding="0" cellspacing="0" style="width:100%">
				<tr>
					<td style="text-align:left">
						<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-open" onclick="javascript:openChannelContractHisForm();">打开</a>
					</td>
					<td style="text-align:right">
						<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="javascript:$('#contractHisDialog').dialog('close')">关闭</a>
					</td>
				</tr>
			</table>
		</div>
		<div style="padding:10px;height: 340px">
			<table id="contractHisList" idField="contractId" fit="true" singleSelect="true" pagination="true" rownumbers="true">
				<thead>
					<tr>
						<th field="contractId" hidden="true">合同ID</th>
						<th field="changeDate" width="130">变更时间</th>
						<th field="changeContent" width="180">变更内容</th>
						<th field="contractVersion" width="180">当前版本号</th>
					</tr>
				</thead>
			</table>
		</div>
	</body>
</html>